﻿@using NOSDC.Utility
@model NOSDC.Models.DocumentsListViewModel

@section Title{
     @Html.CreatePageTitle("Downloads")
}

<fieldset class="regFormBG">
    <h2 style="font-size: 22px; padding-bottom: 1px; color: #236B8E; margin: 0; padding: 0;">DOWNLOADS</h2>
    <hr />
    @foreach(var item in Model.Documents){
    <div class="downloadWrapper">
        <div class="downloadTitle"><a href="@item.Filepath">@item.Title</a></div>
        <div class="fileIcon"><img src="../../Images/@Helper.GetIconType(item.DocumentType)" alt="@item.DocumentType" /></div>
        <div class="downloadDescription">@item.Description</div>
        @Html.Hidden("path", HttpUtility.HtmlEncode(item.Filepath), new { name = "path"})
    </div>
    <br />
    }
</fieldset>
<br />
@section MetaTags{ }

@section Right
{
    @{Html.RenderAction("GetUpcomingEvent", "Events");}
    @{Html.RenderAction("RecentJobs", "Jobs");}
}

@section JavaScript{
    <script src="../../Scripts/downloads.js" type="text/javascript"></script>
       <script type="text/javascript">
           $("#Downloads").addClass("selected");
    </script>
}

@section CSS{
}